﻿using System;
using System.Runtime.CompilerServices;
using System.Xml;
using System.Xml.Serialization;

namespace AppDataStruct
{
    [Serializable]
    public class CodeMap
    {
        private string _code = "";
        [XmlElement("Code")]
        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }

        private string _value = "";
        [XmlElement("Value")]
        public string Value
        {
            get { return _value; }
            set { _value = value; }
        }

        public CodeMap() { }

        public CodeMap(string code, string value)
        {
            _code = code;
            _value = value;
        }

        public void Reset()
        {
            _code = "";
            _value = "";
        }
    }
}

